<?

function check_session($redirect_url) {
	if (!$_SESSION['login'] == 1) {
		#http_redirect($redirect_url);
		#HttpResponse::redirect($redirect_url);
		header("Location: " . $redirect_url);
		return;
	}
}

function meta_redirect( $url, $p_time=null ) {
	echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$url\" />";
}

?>
